package com.ehcache.lc.server.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ehcache.lc.server.service.EhCacheTestService;

@Controller
public class EhCacheTestController {

	@Autowired
	private EhCacheTestService ehCacheTestService;
	
	@ResponseBody
	@RequestMapping("get")
	public String test(){
		String timestamp = ehCacheTestService.getTimestamp("param");
		return timestamp;
	}
}
